<!--@if($category_list[$category]->childs) -->

<form action="./" method="get" class="forumListForm">
	<table cellspacing="0" border="0" class="forumCategoryList">
		<thead>
			{@ $no_line_class = " no_line" }
			<tr class="rootCateg">		
				<td class="large">
					<div class="left first">
						{$lang->subforums}
					</div>
				</td>
				<td class="small">
					<div class="center middle">
						{$lang->document_count}
					</div>
				</td>
				<td class="small">
					<div class="center middle">
						{$lang->comments}
					</div>
				</td>
				<td class="small">
					<div class="center middle">
						{$lang->last_update}
					</div>
				</td>
				<td class="small">
					<div class="center last">
						<a class="openClose"></a>
					</div>
				</td>
			</tr>
		</thead>
	</table>
	{@$sw = 0}
	{@$startDepth = $category_list[category]->depth}
	<!--@foreach($category_children as $val)-->
	<!--@if( $sw == 0 )-->
	<table cellspacing="0" border="0" class="forumCategoryList forumContent contentForum">
		<tbody class="showHide">
	<!--@else-->
		<tr class="separator">
			<td class="large left <!--@if($val->depth > ( $startDepth + 1 ))-->subcateg{$val->depth - $startDepth - 1}<!--@end -->">
				<!--@if($val->depth)-->
					<h{(2 + $val->depth - $startDepth)} class="gF"><a href="{getUrl('category',$val->category_srl, 'act', 'dispForumContent','search_target','','search_keyword','')}">{$val->title}</a></h{(2 + $val->depth)}>
				<!--@end -->
				<!--@if((!$val->depth) && (!$val->child_exists))-->
				<a href="{getUrl('category',$val->category_srl, 'act', 'dispForumContent','search_target','','search_keyword','')}">{$val->title}</a>
				<!--@end -->
				<!--@if(!$val->depth)--><a href="{getUrl('category',$val->category_srl, 'act', 'dispForumContent','search_target','','search_keyword','')}">{$val->title}</a><!--@end-->
				<!--@if($val->depth)--><p class="catDescription">{$val->description}</p><!--@end -->
			</td>
			<td class="small center lightGray numbers gF">
				<!--@if($val->depth)-->{$val->document_count}<!--@end -->
				<!--@if((!$val->depth) && (!$val->child_exists))-->{$val->document_count}<!--@end -->
			</td>
			<td class="small center numbers gF">
				<!--@if($val->depth)-->{$val->comment_count + $val->document_count}<!--@end -->
				<!--@if((!$val->depth) && (!$val->child_exists))-->{$val->comment_count}<!--@end -->
			</td>
			<td class="small center numbers gF" style="width: 20%; font-size: 14px;">
				<!--@if($val->depth >= 0 && $val->document_count)-->
								<p><span style="font-weight: bold;"></span>{zdate($val->last_update,'Y-m-d')}</p>
					<p><span >{$lang->by} </span>{$val->last_author}</p>
								<!--@if($val->last_post || $val->last_document)-->
								<a href="{getUrl('mid','','document_srl', $val->last_document,'cpage','')}#comment_{$val->last_post}">{$lang->latest_post}</a>
								<!--@end-->
			   <!--@end -->
			</td>
			<td></td>
		</tr>
	<!--@end-->
	{@$sw += 1}
	<!--@end-->
		</tbody>
	</table>
</form>

<!--@end-->

